/************************************************************************
Purpose: Master do-file for constructing data for structural model
   *************************************************************************/

clear all
clear matrix
set more off
set linesize 255
pause on

global CODE_DIR = "01Code/model"

global MODEL_DATA_OUT = "02DataPipeline/model"

global MISC_DATA_IN = "00RawData/misc"
global PHONE_DATA_IN = "00RawData/phone_survey"
global PHONE_DATA_OUT = "02DataPipeline/phone_survey"
global BASELINE_DATA_IN = "00RawData/baseline"
global BASELINE_DATA_OUT = "02DataPipeline/baseline"
global EMISSIONS_DATA_OUT = "02DataPipeline/emissions"
global TRADING_DATA_IN = "00RawData/trading"
global TRADING_DATA_OUT = "02DataPipeline/trading/intermediate"
global TRADING_DATA_CLEAN = "02DataPipeline/trading/cleaned"

** We use a conversion rate of USD 1 to INR 70, as of 2 Jan 2019, 
** Source: The Fed (https://www.federalreserve.gov/releases/h10/20190107/)
global USD2INR=70

** We use a conversion rate of USD 1 to INR 70, as of 2 Jan 2019, 
** Source: The Fed (https://www.federalreserve.gov/releases/h10/20190107/)
global USD2INR=70

**********************************************************************

do "$CODE_DIR/cleaning/prepare_structural_model_input.do"
do "$CODE_DIR/cleaning/prepare_bids_data.do"
do "$CODE_DIR/cleaning/compute_bid_price_statistics.do"
